package com.coin900.coin.service.coin;

import com.coin900.coin.persist.coin.CoinReleaseUserVO;
import com.value.mybatis.IDaoRouter;
import com.value.mybatis.Pagination;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 项目发布方信息
 *
 * @author shui
 * @create 2018-1-14
 */
@Service
public class CoinReleaseUserService implements ICoinReleaseUserService {

    @Override
    public List<CoinReleaseUserVO> loadCoinReleaseUser(Map<String, Object> params) {
        return this.daoRouter.query("CoinReleaseUser.loadCoinReleaseUser", params);
    }

    @Override
    public List<CoinReleaseUserVO> loadCoinReleaseUserForPage(Pagination pagination) {
        return this.daoRouter.query("CoinReleaseUser.loadCoinReleaseUserForPage", pagination);
    }

    @Override
    public void insertCoinReleaseUser(CoinReleaseUserVO coinReleaseUserVO) {
        this.daoRouter.insert("CoinReleaseUser.insertCoinReleaseUser", coinReleaseUserVO);
    }

    @Override
    public void updateCoinReleaseUser(CoinReleaseUserVO coinReleaseUserVO) {
        this.daoRouter.update("CoinReleaseUser.updateCoinReleaseUser", coinReleaseUserVO);
    }

    @Override
    public void deleteCoinReleaseUser(CoinReleaseUserVO coinReleaseUserVO) {
        this.daoRouter.update("CoinReleaseUser.deleteCoinReleaseUser", coinReleaseUserVO);
    }

    @Autowired
    private IDaoRouter daoRouter;

}